<template>
  <div class="book">
    <div class="book_left">
      <div class="img">
        <img src="../assets/image/home/home (5).png" @click="tz" />
      </div>
      <div class="text">
        习近平同志于1988年6月至1990年4月任宁德地委书记。本书同样以讲述者口述记录的形式，再现习近平同志成长历程中的一个阶段，生动、真实地再现了习近平同志在宁德两年的工作轨迹。
      </div>
    </div>
    <div class="book_right">
      <div class="item" v-for="(item, index) in list" :key="index">
        <div class="img">
          <img src="../assets/image/home/home (5).png" />
        </div>
        <div class="text">
          <div class="te">{{ item.name }}</div>
          <div class="te">{{ item.text1 }}</div>
          <div class="te">{{ item.text }}</div>
          <div class="bimg">
            <span class="span">￥{{ item.pic }}</span>
            <img src="../assets/image/home/home (10).png" />
          </div>
        </div>
      </div>
      <div class="rImg">
        <img src="../assets/image/home/home (1).png" />
      </div>
      <div class="lImg">
        <img src="../assets/image/home/home (2).png" />
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      list: [
        {
          img: "../assets/image/home/home (5).png",
          name: "书名书名",
          text: '出版时间：2020-09-10',
          text1: '【美】约翰·普拉多',
          pic: '70.30',
          min: "../assets/image/home/home (10).png"
        },
        {
          img: "../assets/image/home/home (5).png",
          name: "书名书名",
          text: '出版时间：2020-09-10',
          text1: '【美】约翰·普拉多',
          pic: '70.30',
          min: "../assets/image/home/home (10).png"
        },
        {
          img: "../assets/image/home/home (5).png",
          name: "书名书名",
          text: '出版时间：2020-09-10',
          text1: '【美】约翰·普拉多',
          pic: '70.30',
          min: "../assets/image/home/home (10).png"
        },
        {
          img: "../assets/image/home/home (5).png",
          name: "书名书名",
          text: '出版时间：2020-09-10',
          text1: '【美】约翰·普拉多',
          pic: '70.30',
          min: "../assets/image/home/home (10).png"
        },
        {
          img: "../assets/image/home/home (5).png",
          name: "书名书名",
          text: '出版时间：2020-09-10',
          text1: '【美】约翰·普拉多',
          pic: '70.30',
          min: "../assets/image/home/home (10).png"
        },
        {
          img: "../assets/image/home/home (5).png",
          name: "书名书名",
          text: '出版时间：2020-09-10',
          text1: '【美】约翰·普拉多',
          pic: '70.30',
          min: "../assets/image/home/home (10).png"
        },
        {
          img: "../assets/image/home/home (5).png",
          name: "书名书名",
          text: '出版时间：2020-09-10',
          text1: '【美】约翰·普拉多',
          pic: '70.30',
          min: "../assets/image/home/home (10).png"
        },
        {
          img: "../assets/image/home/home (5).png",
          name: "书名书名",
          text: '出版时间：2020-09-10',
          text1: '【美】约翰·普拉多',
          pic: '70.30',
          min: "../assets/image/home/home (10).png"
        },
        {
          img: "../assets/image/home/home (5).png",
          name: "书名书名",
          text: '出版时间：2020-09-10',
          text1: '【美】约翰·普拉多',
          pic: '70.30',
          min: "../assets/image/home/home (10).png"
        },
        {
          img: "../assets/image/home/home (5).png",
          name: "书名书名",
          text: '出版时间：2020-09-10',
          text1: '【美】约翰·普拉多',
          pic: '70.30',
          min: "../assets/image/home/home (10).png"
        },

      ]
    }
  },
  methods: {
    tz() {
      this.$router.push("/index/booklist")
    }
  }
}
</script>

<style lang="scss" scoped>
.book {
  width: 1083px;
  height: 100%;
  font-family: Microsoft YaHei;
  display: flex;
  .book_left {
    width: 321px;
    height: 465px;
    border: 2px solid #cccccc;
    margin-right: 4px;
    .img {
      width: 273px;
      height: 335px;
      margin: 11px 0 0 22px;
      img {
        width: 100%;
        height: 100%;
      }
    }
    .text {
      width: 280px;
      height: 60px;
      font-size: 13px;
      font-family: Microsoft YaHei;
      font-weight: 400;
      color: #040203;
      line-height: 16px;
      margin: 12px 0 0 15px;
    }
  }
  .book_right {
    width: 758px;
    height: 465px;
    border: 2px solid #cccccc;
    display: flex;
    flex-wrap: wrap;
    justify-items: center;
    position: relative;
    .item {
      width: 20%;
      .img {
        width: 85px;
        height: 110px;
        padding: 17px 0 0 19px;
        img {
          width: 100%;
          height: 100%;
        }
      }
      .bimg {
        display: flex;
        justify-content: space-between;
        align-items: center;
        .span {
          font-size: 11px;
          font-family: Microsoft YaHei;
          font-weight: 400;
          color: #ff0000;
        }
      }
      .text {
        width: 88px;
        font-size: 10px;
        font-family: Microsoft YaHei;
        font-weight: 400;
        color: #040203;
        line-height: 16px;
        margin-top: 14px;
        padding-left: 19px;
        .te {
          font-size: 10px;
          width: 88px;
          font-size: 10px;
        }
        img {
          width: 13px;
          height: 12px;
        }
      }
    }
    .rImg {
      position: absolute;
      top: 198px;
      right: 0;
      img {
        width: 14px;
        height: 46px;
      }
    }
    .lImg {
      position: absolute;
      top: 198px;
      left: 0;
      img {
        width: 14px;
        height: 46px;
      }
    }
  }
}
</style>